<?php
/**
 *自动加载类函数
 * @param type $class_name 
 */
function __autoload($class_name) {
        $module = str_replace("\\", "/", $class_name);
        $app_file = PRO_PATH.'/'.$module . '.class.php';
        $frm_file = FRM_PATH.'/'.$module . '.class.php';
        $frm_api = FRM_PATH.'/'.$module . '.api.php';
        if(is_file($frm_file)){
            require_once $frm_file;
        }elseif(is_file($frm_api)){
            require_once $frm_api;
        }elseif(is_file($app_file)){
            require_once $app_file;
        }else{
            return false;
        }
}
?>